﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Behaviour.StrategyPattern;

namespace dpdw.testing.Behaviour
{
    [TestClass]
    public class TestStretegyPattern
    {
        [TestMethod]
        public void TestStretegyPatternModelDuck1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestStretegyPatternModelDuck1");

            Duck duck = new ModelDuck();

            duck.PerformFly();
            duck.PerformQuack();

            duck.FlyBehavior = new FlyRocketPowered();
            duck.PerformFly();
        }
    }
}
